package eo.descriptor.property;

import java.io.Serializable;

public interface PrimaryKeyDescriptor extends PropertyDescriptor {
    /**
     * Given an entity, return its ID or <code>null</code> if the entity is
     * embedded.
     * 
     * @param entity
     *            the entity
     * @return {@link Object} the value of this property
     */
    Serializable getValue(final Object entity);
}
